assume cs:codesg
codesg segment
    dw 0001, 0002, 0003, 0004
    dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
start:
    mov ax, cs
    mov ss, ax
    mov sp, 10h

    mov bx, 0
    mov cx, 4
s: 
    push cs:[bx]
    add bx, 2
    loop s

    mov bx, 0
    mov cx, 4
s0:
    pop cs:[bx]
    add bx, 2
    loop s0

    mov ax, 4c00H
    int 21H
codesg ends
end start
